class CaptchaEntity {
  int? code;
  String? message;
  CaptchaData? data;
  int? timestamp;

  CaptchaEntity({this.code, this.message, this.data, this.timestamp});

  CaptchaEntity.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    message = json['message'];
    data = json['data'] != null ? CaptchaData.fromJson(json['data']) : null;
    timestamp = json['timestamp'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['code'] = code;
    data['message'] = message;
    if (this.data != null) {
      data['data'] = this.data!.toJson();
    }
    data['timestamp'] = timestamp;
    return data;
  }
}

class CaptchaData {
  String? captchaId;
  String? image64;

  CaptchaData({this.captchaId, this.image64});

  CaptchaData.fromJson(Map<String, dynamic> json) {
    captchaId = json['captchaId'];
    image64 = json['image64'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['captchaId'] = captchaId;
    data['image64'] = image64;
    return data;
  }
}
